
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JScrollPane;


/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
/**
 *
 * @author YixinGeng This is the MainFrame which contains all the displaying
 * content including a scroll pane. The scroll pane contains a WholeTestPath
 * panel.
 */
public class MainFrame extends JFrame {

    public MainFrame() {
        super("Test Case UI");

        //Whole test path display initialization
        WholeTestPath p1 = new WholeTestPath();
//        p1.setSize(400, 700);
        JScrollPane scrollPane = new JScrollPane(p1);

        scrollPane.setAutoscrolls(true);

        getContentPane().setLayout(new BorderLayout());
        getContentPane().add(scrollPane, BorderLayout.CENTER);

        pack();
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        this.setVisible(true);
    }

    public static void main(String args[]) {

        MainFrame frame1 = new MainFrame();

    }
}
